<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<link href="css/baitiao.css" rel="stylesheet" type="text/css" />
<style>
.mytable {
	width: 100%;
	border-collapse: collapse;
	width: 800px;
}

.mytable tr {
	
}

.mytable td {
	text-align: center;
	height: 50px;
}

.mytable tr:nth-child(2n) {
	background-color: #F5F5F5;
}

.mytable tr:nth-child(2n-1) {
	background-color: #DCDCDC;
}
</style>
<meta charset="UTF-8">
<title>我的课表</title>
</head>
<body align="center"
	style="background-image: url(images/a.gif); background-size: 100%;">
	<%
        Object message = request.getAttribute("message");
        if (message != null && !"".equals(message)) {
    %>
	<script type="text/javascript">
              alert("<%=request.getAttribute("message")%>");
              var  asd=request.getAttribute("username");         
    </script>
	<%
        }
    %>


	<script type="text/javascript">
	function back(){
    	alert('退出成功');
    	location.href='index.jsp';
    	}
    </script>
	<div style="margin-top: 40px">
	</div>
	<div align="center">
		<h1 style="color: red;">“${prename }”的课表</h1>

		<div
			style="border: 3px solid black; width: 800px; height: 480px; position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%);">
			<table class="mytable">
				<tr>
					<td>课程编号</td>
					<td>课程名称</td>
					<td>已选人数</td>
					<td>任课老师</td>
<td></td>

				</tr>
				<!-- forEach遍历出adminBeans -->
				<c:forEach items="${holds}" var="item" varStatus="status">
					<tr>
						<td>${item.clahao}</td>
						<td>${item.claname}</td>
						<td>${item.number}</td>
						<td>${item.tea}</td>
<td><a style="text-decoration: none;"
							href="Servlet?method=list5&clahao=${item.clahao}&user=${item.tea }">删除</a>
						</td>

					</tr>
				</c:forEach>
			</table>
		</div>
		
		<button
			style=" width: 130px; height: 50px; font-size: 23px; color: red; position: absolute; bottom: 15%;transform: translate(-50%); "
			onclick="location.href='allteacher.jsp'">返 回</button>
		
		
</body>
</html>